package model

import (
	"gitee.com/liumou_site/logger"
	"os"
)

func (api *DownLoad) GetKey() {
	api.Key = os.Getenv("UrlKey")
	if api.Key == "" || api.Key == " " {
		logger.Error("无法通过变量获取Key值: UrlKey")
		os.Exit(3)
	}
}
